//
//  KeyWordCollectionViewCell.m
//  礼物go
//
//  Created by dllo on 16/5/31.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "KeyWordCollectionViewCell.h"

@interface KeyWordCollectionViewCell ()
@property(nonatomic,strong)UILabel *nameLabel;

@end

@implementation KeyWordCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

-(void)createSubviews{
    
    self.nameLabel = [[UILabel alloc]init];
    self.nameLabel.textAlignment =  NSTextAlignmentCenter;
    self.nameLabel.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.nameLabel];
    
    
}
-(void)layoutSubviews{
    self.nameLabel.frame = self.contentView.frame;
  
}

-(void)setKeyWord:(NSString *)keyWord{
    _keyWord = keyWord;
    self.nameLabel.text = _keyWord;
}







@end
